ngl: Fix an oversight
authorMatthias Clasen <mclasen@redhat.com>
Mon, 5 Apr 2021 03:44:26 +0000 (23:44 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 5 Apr 2021 12:47:53 +0000 (08:47 -0400)
We were special-casing 2D affine transforms,
but overlooked even simpler transforms.

gsk/ngl/gsknglrenderjob.c

index 0bd6c94b68987d8d9f9959836072ee7e01714c90..3e823dedabe489279c123410ce241254df4853e5 100644 (file)
@@ -726,7 +726,7 @@ gsk_ngl_render_job_transform_bounds (GskNglRenderJob       *job,
   /* Our most common transform is 2d-affine, so inline it.
    * Both identity and 2d-translate are virtually unseen here.
    */
-  if G_LIKELY (category == GSK_TRANSFORM_CATEGORY_2D_AFFINE)
+  if G_LIKELY (category >= GSK_TRANSFORM_CATEGORY_2D_AFFINE)
     {
       float dx, dy, scale_x, scale_y;